package com.xzzz.irda.tracker.core.adapter.elasticsearch;

import com.xzzz.expand.es.core.EsClientConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Tracker 对 ElasticSearch 的支持
 *
 * @author xzzz
 */
@Configuration
@ConditionalOnClass(value = EsClientConfig.class)
public class TrackerElasticSearchConfiguration {

    @Bean
    public TrackerElasticSearchAspect trackerElasticSearchAspect() {
        return new TrackerElasticSearchAspect();
    }
}
